import request from "@/utils/request";




export function add(data,type) {
  return request({
    url: "/sinohis/pension/profession/bedmanager/building",
    method: type,
    data

  });

}

export function search(params) {
  return request({
    url: "/sinohis/pension/profession/bedmanager/building/condition",
    method: "get",
    params

  });

}

export function condition(params) {
  return request({
    url: "/sinohis/pension/profession/bedmanager/building/"+params.number+'/' + params.institutionNumber,
    method: "GET",
    params

  });

}
export function doDelete(params) {
  return request({
    url: "/sinohis/pension/profession/bedmanager/building/remove/"+params.number+'/' + params.institutionNumber,
    method: "DELETE",
    params

  });

}
export function disable(data) {
  return request({
    url: "/sinohis/pension/profession/bedmanager/building/disable/"+data.number+'/' + data.institutionNumber,
    method: "PUT",
    data

  });

}
export function enable(data) {
  return request({
    url: "/sinohis/pension/profession/bedmanager/building/enable/"+data.number+'/' + data.institutionNumber,
    method: "PUT",
    data

  });

}
